% calculate SSE
fres.SSE = gof.sse;

% collect other values
fres.NumObservations = output.numobs;
fres.NumCoeffs = output.numparam;